package com.yyc.stocktake2.bean.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.yyc.stocktake2.api.ApiService

/**
 * @Author nike
 * @Date 2023/7/28 10:22
 * @Description
 */
@Entity
open class ConfigBean {

    @PrimaryKey(autoGenerate = true)//自增长
    var uid: Int = 0

    @ColumnInfo(name = "loginId")
    var loginId: String = ""

    @ColumnInfo(name = "password")
    var password: String = ""

    @ColumnInfo(name = "language")
    var language: String = ""

    @ColumnInfo(name = "httpUrl")
    var httpUrl: String = ApiService.SERVLET_URL

    @ColumnInfo(name = "companyId")
    var companyId: String = "RFIDInventory_V2.0.0"

    @ColumnInfo(name = "session")//0 1 2 3
    var session: Int = 0

    @ColumnInfo(name = "qlabel")//单，多标签 单0  多4
    var qlabel: Int = 4

    @ColumnInfo(name = "inventoryFlag")//盘存方式  A B AB面
    var inventoryFlag: Int = 2

    @ColumnInfo(name = "speed")//基带速率  1密集 3快速
    var speed: Int = 3

    @ColumnInfo(name = "rfidPower")
    var rfidPower: Int = 32

    @ColumnInfo(name = "otherPower")
    var otherPower: Int = 32

    @ColumnInfo(name = "powerType")
    var powerType: Int = 0//0RFID  1寻找

}